<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Navo Portable Library: Blowfish</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Navo Portable Library&#160;<span id="projectnumber">Ver 1.0.20120827</span></div>
   <div id="projectbrief">Provides generic platform independent facilities.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>数据结构</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">数据结构</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<h1>Blowfish</h1>  </div>
<div class="ingroups"><a class="el" href="group___xE5_xAF_xB9_xE7_xA7_xB0_xE5_x8A_xA0_xE5_xAF_x86.html">对称加密</a></div></div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
数据结构</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structblowfish__key.html">blowfish_key</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Blowfish密钥  <a href="structblowfish__key.html#_details">更多...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
宏定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga34b957bfd1741555e2b02c257aae38ff"></a><!-- doxytag: member="Blowfish::BLOWFISH_KEY" ref="ga34b957bfd1741555e2b02c257aae38ff" args="(name)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Blowfish.html#ga34b957bfd1741555e2b02c257aae38ff">BLOWFISH_KEY</a>(name)&#160;&#160;&#160;<a class="el" href="structblowfish__key.html">blowfish_key</a> name = {{0}, {0}}</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">定义名为name的Blowfish密钥 <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Blowfish.html#ga09d0a0386d5737e6b750d1eccca1e13c">blowfish_set_key</a>(key, src_key, cnt)&#160;&#160;&#160;__blowfish_set_key(key, (<a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a>*)(src_key), cnt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设置Blowfish密钥  <a href="#ga09d0a0386d5737e6b750d1eccca1e13c"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
函数</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga32941eb2faef26ffb47eb4dfa4ca834b"></a><!-- doxytag: member="Blowfish::__blowfish_set_key" ref="ga32941eb2faef26ffb47eb4dfa4ca834b" args="(blowfish_key *key, uint8_t *src_key, size_t cnt)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__blowfish_set_key</b> (<a class="el" href="structblowfish__key.html">blowfish_key</a> *key, <a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *src_key, size_t cnt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gade0f8eaf7b1a810c09a2d9c783bb9c4c"></a><!-- doxytag: member="Blowfish::__blowfish_encrypt" ref="gade0f8eaf7b1a810c09a2d9c783bb9c4c" args="(uint32_t *esk, uint32_t *s_box, uint32_t *dst, uint32_t *src)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__blowfish_encrypt</b> (uint32_t *esk, uint32_t *s_box, uint32_t *dst, uint32_t *src)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Blowfish.html#ga0163a5bc9e2b95acdb2e17de13c81fcb">blowfish_encrypt_block</a> (<a class="el" href="structblowfish__key.html">blowfish_key</a> *key, void *dst, void *src)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Blowfish加密一个区块(8字节)  <a href="#ga0163a5bc9e2b95acdb2e17de13c81fcb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaecf59ac71fca3060f8cb45c1282e5c51"></a><!-- doxytag: member="Blowfish::__blowfish_decrypt" ref="gaecf59ac71fca3060f8cb45c1282e5c51" args="(uint32_t *dsk, uint32_t *s_box, uint32_t *dst, uint32_t *src)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__blowfish_decrypt</b> (uint32_t *dsk, uint32_t *s_box, uint32_t *dst, uint32_t *src)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Blowfish.html#gae043699c9bc8a0a28973f78f9017755c">blowfish_decrypt_block</a> (<a class="el" href="structblowfish__key.html">blowfish_key</a> *key, void *dst, void *src)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Blowfish解密一个区块(8字节)  <a href="#gae043699c9bc8a0a28973f78f9017755c"></a><br/></td></tr>
</table>
<hr/><h2>宏定义文档</h2>
<a class="anchor" id="ga09d0a0386d5737e6b750d1eccca1e13c"></a><!-- doxytag: member="blowfish.h::blowfish_set_key" ref="ga09d0a0386d5737e6b750d1eccca1e13c" args="(key, src_key, cnt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define blowfish_set_key</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">key, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">src_key, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">cnt&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;__blowfish_set_key(key, (<a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a>*)(src_key), cnt)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>设置Blowfish密钥 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">key</td><td>Blowfish密钥 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">src_key</td><td>原始密钥 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cnt</td><td>原始密钥长度 </td></tr>
  </table>
  </dd>
</dl>

<p>在文件<a class="el" href="blowfish_8h_source.html">blowfish.h</a>第<a class="el" href="blowfish_8h_source.html#l00058">58</a>行定义。</p>

</div>
</div>
<hr/><h2>函数文档</h2>
<a class="anchor" id="ga0163a5bc9e2b95acdb2e17de13c81fcb"></a><!-- doxytag: member="blowfish.h::blowfish_encrypt_block" ref="ga0163a5bc9e2b95acdb2e17de13c81fcb" args="(blowfish_key *key, void *dst, void *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static inline void blowfish_encrypt_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structblowfish__key.html">blowfish_key</a> *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Blowfish加密一个区块(8字节) </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">key</td><td>Blowfish密钥 </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">dst</td><td>密文输出缓存，大端字节序 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>明文输入缓存 </td></tr>
  </table>
  </dd>
</dl>

<p>在文件<a class="el" href="blowfish_8h_source.html">blowfish.h</a>第<a class="el" href="blowfish_8h_source.html#l00072">72</a>行定义。</p>

</div>
</div>
<a class="anchor" id="gae043699c9bc8a0a28973f78f9017755c"></a><!-- doxytag: member="blowfish.h::blowfish_decrypt_block" ref="gae043699c9bc8a0a28973f78f9017755c" args="(blowfish_key *key, void *dst, void *src)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static inline void blowfish_decrypt_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structblowfish__key.html">blowfish_key</a> *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Blowfish解密一个区块(8字节) </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">key</td><td>Blowfish密钥 </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">dst</td><td>明文输出缓存 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>密文输入缓存，大端字节序 </td></tr>
  </table>
  </dd>
</dl>

<p>在文件<a class="el" href="blowfish_8h_source.html">blowfish.h</a>第<a class="el" href="blowfish_8h_source.html#l00089">89</a>行定义。</p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>数据结构</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at 2015年七月16日 星期四 12:00:41 for Navo Portable Library by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
